package com.couldsail.takeaway.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("shop_reviews")
@Schema(description = "店铺评论实体")
public class ShopReviews {
    @Schema(description = "评论ID")
    private String id;

    @Schema(description = "店铺ID")
    private String shopId;

    @Schema(description = "用户ID")
    private String userId;

    @Schema(description = "评分")
    private BigDecimal rating;

    @Schema(description = "评论内容")
    private String reviewText;

    @Schema(description = "评论时间")
    private LocalDateTime createTime;
}
